package com.wmh.baseservice.merchant.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author wmh generator
 * @since 2022-03-18
 */
@ApiModel(value="MerchantPlotRentalMenu对象", description="商家菜/果地区域租赁套餐表")
public class MerchantPlotRentalMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    private Date createTime;

    private Date updateTime;

    @ApiModelProperty(value = "区域id")
    private Long regionId;

    @ApiModelProperty(value = "租金")
    private BigDecimal price;

    @ApiModelProperty(value = "天数(例:30)")
    private Integer day;

    @ApiModelProperty(value = "套餐描述(例：一个月)")
    @TableField(value = "`describe`")
    private String describe;

    @ApiModelProperty(value = "商家id")
    private Long merchantId;

    @TableField(exist = false)
    private String regionName;

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }
    public Long getId() {
        return id;
    }

    public MerchantPlotRentalMenu setId(Long id) {
        this.id = id;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public MerchantPlotRentalMenu setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public String getRemark() {
        return remark;
    }

    public MerchantPlotRentalMenu setRemark(String remark) {
        this.remark = remark;
        return this;
    }
    public Integer getVersion() {
        return version;
    }

    public MerchantPlotRentalMenu setVersion(Integer version) {
        this.version = version;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public MerchantPlotRentalMenu setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public MerchantPlotRentalMenu setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public Long getRegionId() {
        return regionId;
    }

    public MerchantPlotRentalMenu setRegionId(Long regionId) {
        this.regionId = regionId;
        return this;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public MerchantPlotRentalMenu setPrice(BigDecimal price) {
        this.price = price;
        return this;
    }
    public Integer getDay() {
        return day;
    }

    public MerchantPlotRentalMenu setDay(Integer day) {
        this.day = day;
        return this;
    }
    public String getDescribe() {
        return describe;
    }

    public MerchantPlotRentalMenu setDescribe(String describe) {
        this.describe = describe;
        return this;
    }
    public Long getMerchantId() {
        return merchantId;
    }

    public MerchantPlotRentalMenu setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
        return this;
    }

    public static final String ID = "id";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";

    public static final String VERSION = "version";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String REGION_ID = "region_id";

    public static final String PRICE = "price";

    public static final String DAY = "day";

    public static final String DESCRIBE = "describe";

    public static final String MERCHANT_ID = "merchant_id";

    @Override
    public String toString() {
        return "MerchantPlotRentalMenu{" +
            "id=" + id +
            ", status=" + status +
            ", remark=" + remark +
            ", version=" + version +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", regionId=" + regionId +
            ", price=" + price +
            ", day=" + day +
            ", describe=" + describe +
            ", merchantId=" + merchantId +
        "}";
    }

    public final static String[] getFields(String ...noField){
        List<String> list = new ArrayList<>(Arrays.asList(
            MerchantPlotRentalMenu.ID
            ,MerchantPlotRentalMenu.STATUS
            ,MerchantPlotRentalMenu.REMARK
            ,MerchantPlotRentalMenu.VERSION
            ,MerchantPlotRentalMenu.CREATE_TIME
            ,MerchantPlotRentalMenu.UPDATE_TIME
            ,MerchantPlotRentalMenu.REGION_ID
            ,MerchantPlotRentalMenu.PRICE
            ,MerchantPlotRentalMenu.DAY
            ,MerchantPlotRentalMenu.DESCRIBE
            ,MerchantPlotRentalMenu.MERCHANT_ID
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}